﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MaintainAwardsIssued.aspx.cs" Inherits="Admin_MaintainAwards" %>
 <%@ Register Assembly="jQueryDatePicker" Namespace="Westwind.Web.Controls" TagPrefix="ww" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div class="cleaner_with_height3"></div>

     <asp:Panel ID="pn_Award_Issued" runat="server">
    </asp:Panel>


      <div class="cleaner_with_height3"></div>
       
   
    <asp:DropDownList ID="drd_Competitions" runat="server" 
        DataTextField="CompetitionName" DataValueField="CompetitionID"  
        AutoPostBack="true" 
        onselectedindexchanged="drd_Competitions_SelectedIndexChanged">
     </asp:DropDownList> 

        <asp:Button ID="btn_Insert"  runat="server" Text="Add AwardIssued" 
        onclick="btn_Insert_Click"/>
    <asp:Button ID="btn_Delete" OnClientClick="javascript:return confirmAction();"  runat="server" Text="Delete" 
        onclick="btn_Delete_Click" />

         <div class="cleaner_with_height2"></div>
    <asp:GridView ID="grv_AwardIssued" runat="server" Width="640px" AutoGenerateColumns="false" DataKeyNames="AwardID" AllowPaging="false">
        <Columns>

         <asp:TemplateField ItemStyle-Width="10px">
         <ItemStyle HorizontalAlign="Center" />
            <HeaderTemplate> All <asp:CheckBox ID="chk_All" runat="server" AutoPostBack="true" OnCheckedChanged="onCheckedChange" /> </HeaderTemplate>
            <ItemTemplate><asp:CheckBox ID="chk_Item" runat="server" /></ItemTemplate>
        </asp:TemplateField>

            <asp:TemplateField> 
            <ItemStyle HorizontalAlign="Center" />
                <HeaderTemplate>Awards Name</HeaderTemplate>
                <ItemTemplate><%#Eval("AwardName") %></ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField>
            <ItemStyle HorizontalAlign="Center" />
                <HeaderTemplate>Student Name</HeaderTemplate>
                <ItemTemplate> <asp:Label ID="lbl_PostID" runat="server" Visible="false" Text=' <%#Eval("PostingID") %> '></asp:Label><%#Eval("Fullname") %></ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField>
            <ItemStyle HorizontalAlign="Center" />
                <HeaderTemplate>Posting Name</HeaderTemplate>
                <ItemTemplate><%#Eval("PostingName") %></ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField>
            <ItemStyle HorizontalAlign="Center" />
                <HeaderTemplate>Prize</HeaderTemplate>
                <ItemTemplate><%#Eval("Prize") %></ItemTemplate>
            </asp:TemplateField>

             <asp:TemplateField>
             <ItemStyle HorizontalAlign="Center" />
            <HeaderTemplate> Edit </HeaderTemplate>
            <ItemTemplate><a href='MaintainAwardsIssued.aspx?AwardID=<%#Eval("AwardID") %>&&PostingID=<%#Eval("PostingID") %>&&CompetitionID=<%#Eval("CompetitionID") %>'>Edit</a></ItemTemplate>
        </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>